package cn.sunlelin.educationserver.service;

import cn.sunlelin.educationserver.entity.Taskscore;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface TaskscoreService {
    public Boolean createTaskscore(Taskscore taskscore);
    public Boolean updateTaskscore(Taskscore taskscore);
    public Boolean TaskscoreScoring(Taskscore taskscore, Integer userId);
    public Taskscore selectTaskscoreById(Integer taskscoreId);
    public List<Taskscore> selectTaskscoreByUserId(Integer userId);
    public List<Map<String,Object>> selectTaskscoreByTaskId(Integer taskId);
    public Page<Map<String, Object>> getPageScoreByTaskId(Integer currentPage, Integer pageSize, Integer taskId);
    public Map<String,Object> selectTaskscoreByUserAndTask(Integer userId, Integer taskId);
    public Boolean deleteTaskscore(Integer taskscoreId);
}